package com.kotlin.myapplication.mvp.ui.start

import android.content.Intent
import android.os.Bundle
import android.view.View
import com.kotlin.myapplication.R
import com.kotlin.myapplication.base.BaseActivity
import com.kotlin.myapplication.mvp.ui.main.MainfirstActivity

/**
 *@lil
 *@创建时间 2019/11/4 9:18
 *@描述
 */
import kotlinx.android.synthetic.main.activity_menu.*


class MenuAcitivity : BaseActivity(), View.OnClickListener {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

    }

    override fun initView() {
        setContentView(R.layout.activity_menu)
        layout_home!!.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when (v?.id) {
            R.id.layout_home -> {
                startActivity(Intent(this@MenuAcitivity, MainfirstActivity::class.java))
                finish()
            }
        }
    }

}